package com.guge.sports.mapper;

import com.guge.sports.entity.Dto.Option;
import com.guge.sports.entity.Dto.StCourseDto;
import com.guge.sports.entity.StCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guge.sports.toolPackage.utils.MyPager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-09-14
 */
public interface StCourseMapper extends BaseMapper<StCourse> {

    List<StCourseDto> selectStCoursePage(@Param("page") MyPager<StCourseDto> calcuStartIndex, @Param("course") StCourseDto courseDto);

    int selectCountStTeacherPage(@Param("course") StCourseDto courseDto);

    List<StCourseDto> selectionCourse(@Param("page") MyPager<StCourseDto> calcuStartIndex, @Param("course") StCourseDto stCourseDto);

    StCourseDto getCourseById(Long id);

    void deleteCourse(Long id);

    void courseTakeDown(Long id);


}
